-- GENERATED SPELL FOR [Necromancer] --


function spell0_8553(pUnit, Event) --@Cripple,n/a--
pUnit:FullCastSpellOnTarget(11443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8553', 18000, 1)
end

function spell1_8553(pUnit, Event) --@Summon Skeletal Servant,Self--
pUnit:FullCastSpellOnTarget(12420,pUnit)
pUnit:RegisterEvent('Sorts_8553', 625, 1)
end

function Sorts_8553(pUnit, Event)
local choix_sorts_8553 = math.random(0, 1)
if choix_sorts_8553 == 0 then
pUnit:RegisterEvent('spell0_8553', 1, 1)
end
if choix_sorts_8553 == 1 then
pUnit:RegisterEvent('spell1_8553', 1, 1)
end
end

function mob8553_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8553', math.random(1500, 3000), 1)
end

function mob8553_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8553_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8553_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8553, 1, 'mob8553_Action')
RegisterUnitEvent(8553, 2, 'mob8553_Leave')
RegisterUnitEvent(8553, 3, 'mob8553_Kill')
RegisterUnitEvent(8553, 4, 'mob8553_Die')
